<?php
namespace app\modules\adminapi\controllers;

use app\models\UserRoles;

class ListroleController extends \app\modules\adminapi\ForceLoginPure {

    public function run() {
        $model = new UserRoles();
        $ret = $model->getListByCondition('id,role_name,role_describe', '1=1');

        $this->ajaxReturn([
            'data' => $ret
        ]);
    }

}
